#ifndef JERUK_GLOBAL_H
#define JERUK_GLOBAL_H

#include <string.h>

typedef unsigned int UINT;
typedef unsigned char CHAR;

#define MEM_NEW(P, SZ) { P = malloc(SZ); memset(P, 0, SZ); }
#define MEM_FREE(P) { free(P); }

#define STR(V) { fprintf(stderr, #V": %s\n", V); }
#define VAR(V) { fprintf(stderr, #V": %ld\n", V); }

#endif /* JERUK_GLOBAL_H */
